
package com.jf.cloud.live.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.Date;

/**
 * 直播商品DTO
 *
 * @author zz
 * @date 2022-08-17 17:09:06
 */
public class LiveProdStoreDTO{
    private static final long serialVersionUID = 1L;

    @Schema(description = "直播商品库id" )
    private Long liveProdStoreId;

    @Schema(description = "商家id" )
    private Long shopId;

    @Schema(description = "商品id" )
    private Long prodId;

    @Schema(description = "商品封面，原图" )
    private String coverPic;

    @Schema(description = "商品封面，存储的是mediaID（mediaID获取后，三天内有效）" )
    private String converImgUrl;

    @Schema(description = "商品名称，提交给第三方接口的名称" )
    private String name;

    @Schema(description = "价格类型，1：一口价（只需要传入price，price2不传） 2：价格区间（price字段为左边界，price2字段为右边界，price和price2必传） 3：显示折扣价（price字段为原价，price2字段为现价， price和price2必传）" )
    private Integer priceType;

    @Schema(description = "商品价格(元)" )
    private Double price;

    @Schema(description = "商品价格(元)" )
    private Double price2;

    @Schema(description = "商品详情页的小程序路径，路径参数存在 url 的，该参数的值需要进行 encode 处理再填入" )
    private String url;

    @Schema(description = "商品类型(0普通商品 1拼团 2秒杀 3积分)" )
    private Integer prodType;

    @Schema(description = "活动id(对应prod_type)" )
    private Long activityId;

    @Schema(description = " -1:删除时间  0:商家创建商品 1:商家提交审核 2:审核通过 3:审核不通过 4:微信直播服务平台，违规下架 5:平台撤销直播商品" )
    private Integer status;

    @Schema(description = "商家提交审核时间" )
    private Date verifyTime;

    @Schema(description = "商品审核通过时间" )
    private Date successTime;

    @Schema(description = "商品审核未通过时间" )
    private Date failTime;

    @Schema(description = "违规下架时间" )
    private Date shelfTime;

    @Schema(description = "平台撤销时间" )
    private Date cancelTime;

    @Schema(description = "商家删除直播商品时间" )
    private Date deleteTime;

    @Schema(description = "版本，乐观锁" )
    private Integer version;

    @Schema(description = "微信提交审核后的商品ID" )
    private Long goodsId;

    @Schema(description = "审核单Id" )
    private Long auditId;

    @Schema(description = "截止时间" )
    private Date endTime;

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Long getLiveProdStoreId() {
        return liveProdStoreId;
    }

    public void setLiveProdStoreId(Long liveProdStoreId) {
        this.liveProdStoreId = liveProdStoreId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getProdId() {
        return prodId;
    }

    public void setProdId(Long prodId) {
        this.prodId = prodId;
    }

    public String getCoverPic() {
        return coverPic;
    }

    public void setCoverPic(String coverPic) {
        this.coverPic = coverPic;
    }

    public String getConverImgUrl() {
        return converImgUrl;
    }

    public void setConverImgUrl(String converImgUrl) {
        this.converImgUrl = converImgUrl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPriceType() {
        return priceType;
    }

    public void setPriceType(Integer priceType) {
        this.priceType = priceType;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getPrice2() {
        return price2;
    }

    public void setPrice2(Double price2) {
        this.price2 = price2;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getProdType() {
        return prodType;
    }

    public void setProdType(Integer prodType) {
        this.prodType = prodType;
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getVerifyTime() {
        return verifyTime;
    }

    public void setVerifyTime(Date verifyTime) {
        this.verifyTime = verifyTime;
    }

    public Date getSuccessTime() {
        return successTime;
    }

    public void setSuccessTime(Date successTime) {
        this.successTime = successTime;
    }

    public Date getFailTime() {
        return failTime;
    }

    public void setFailTime(Date failTime) {
        this.failTime = failTime;
    }

    public Date getShelfTime() {
        return shelfTime;
    }

    public void setShelfTime(Date shelfTime) {
        this.shelfTime = shelfTime;
    }

    public Date getCancelTime() {
        return cancelTime;
    }

    public void setCancelTime(Date cancelTime) {
        this.cancelTime = cancelTime;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getAuditId() {
        return auditId;
    }

    public void setAuditId(Long auditId) {
        this.auditId = auditId;
    }

    @Override
    public String toString() {
        return "LiveProdStoreDTO{" +
                "liveProdStoreId=" + liveProdStoreId +
                ",shopId=" + shopId +
                ",prodId=" + prodId +
                ",coverPic=" + coverPic +
                ",converImgUrl=" + converImgUrl +
                ",name=" + name +
                ",priceType=" + priceType +
                ",price=" + price +
                ",price2=" + price2 +
                ",url=" + url +
                ",prodType=" + prodType +
                ",activityId=" + activityId +
                ",status=" + status +
                ",verifyTime=" + verifyTime +
                ",successTime=" + successTime +
                ",failTime=" + failTime +
                ",shelfTime=" + shelfTime +
                ",cancelTime=" + cancelTime +
                ",deleteTime=" + deleteTime +
                ",version=" + version +
                ",goodsId=" + goodsId +
                ",auditId=" + auditId +
                '}';
    }
}
